<include file="Public/header" title="企业事务服务平台" bdstyle="background:#f2f2f2"/>
    <div class="swiper-contain banner" style="overflow: hidden;">
      <div class="swiper-wrapper">
        <div class="swiper-slide" style="background:url('__PUBLIC__/home/images/bannner.jpg') no-repeat center;background-size:cover;"></div>
        <div class="swiper-slide" style="background:url('__PUBLIC__/home/images/bannner.jpg') no-repeat center;background-size:cover;"></div>
        <div class="swiper-slide" style="background:url('__PUBLIC__/home/images/bannner.jpg') no-repeat center;background-size:cover;"></div>
      </div>  
      <div class="swiper-pagination"></div>
    </div>
    <article class="package flex-align">
        <foreach name="packages" key="n" item="val">
        <php>if($n>2)break;</php>
        <div onclick="location.href='{:U('Goods/package_detail',array('goods_id'=>$val['act_id']))}'">
            <div style="background:url({:$val['package_img']?$val['package_img']:'__PUBLIC__/home/images/package.jpg'}) no-repeat center;background-size:cover;"></div>
            <h3>{$val.act_name}</h3>
            <p>{:cut_str($val['act_desc'],16)}</p>
        </div>
		</foreach>
    </article>
    <foreach name="packages" key="n" item="val">
    	<php>if($n<=2)continue;</php>
    	<article class="project flex"  onclick="location.href='{:U('Goods/package_detail',array('goods_id'=>$val['act_id']))}'">
	        <div style="background:url({:$val['package_img']?$val['package_img']:'__PUBLIC__/home/images/package.jpg'}) no-repeat center;background-size:cover;"></div>
	        <div class="flex-1" >
	            <h3>{$val.act_name}</h3>
	            <p>{:cut_str($val['act_desc'],16)}</p>
	        </div>
	    </article>
    </foreach>
    <foreach name="goods" item="val">
	    <article class="project flex"  onclick="location.href='{:U('Goods/goods_detail',array('goods_id'=>$val['goods_id']))}'">
	        <div style="background:url({:$val['goods_img']?$val['goods_img']:'__PUBLIC__/home/images/project1.jpg'}) no-repeat center;background-size:cover;"></div>
	        <div class="flex-1" >
	            <h3>{$val.goods_name}</h3>
	            <p>{:cut_str($val['keywords'],20)}</p>
	        </div>
	    </article>
	</foreach>
    <script>
        var mySwiper = new Swiper('.swiper-contain', {
            autoplay: 3000,//可选选项，自动滑动
            loop:true,
            autoplayDisableOnInteraction : false,
            pagination : '.swiper-pagination',//分页器
            paginationClickable :true 
        });
    </script>
    <div style="height:1rem;width:100%;"></div>
<include file="Public/foot_nav" act_nav="goods"/>
<include file="Public/footer"/>


